<?php
/*
 * @Author: your name
 * @Date: 2020-12-23 12:01:16
 * @LastEditTime: 2020-12-28 10:01:41
 * @LastEditors: Please set LastEditors
 * @Description: 服务中间键控制器
 * @FilePath: /special/application/adminapiv3/controller/platform_manage/ServerMiddlewareController.php
 */

namespace app\adminapiv3\controller\platform_manage;

use app\adminapiv3\controller\BaseController;
use think\facade\Request;

class ServerMiddlewareController extends BaseController
{
    /**
     * 代理管理列表
    */
    public function proxyList(){

        return $this->list('proxy');
    }

    /**
     * 日志管理列表
     */
    public function syncLogList(){
        return $this->list('syncLog');
    }

    /**
     * 模块管理
    */
    public function moduleList(){
        return $this->list();
    }

    /**
     * @name 中间件管理列表
     * @param $type
     * @author wx
     * @date 2020/1/13 11:01
     */
    protected function list(){
        //搜索参数
        $params = Request::only([
            'name','ip','version','type'
        ],'get');



        $server = new \app\adminapiv3\service\platform_manage\ServerMiddlewareService();
        $list = $server->list($params);

        return $this->jsonOutPut($list);
    }
}